package com.abberbex;

import org.newdawn.fizzy.Rectangle;
import org.newdawn.fizzy.StaticBody;
import org.newdawn.slick.Image;
import org.newdawn.slick.SlickException;

/**
 * 
 * @author Brendan Dickerson
 *
 */
@SuppressWarnings("rawtypes")
public class Surface extends StaticBody{

	private static Rectangle bounds = new Rectangle(64,32);
	private Image image;
	
	public Surface(float x, float y) {
		super(bounds, x, y);
		try {
			image = new Image("terrain/surface.png");
		} catch (SlickException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		this.setRestitution(0);
		this.setFriction(0);
	}
	
	public void draw()
	{
		image.draw(this.getX(),this.getY(),64,32);
	}
	

}
